import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';

// 创建保养项目
export const spinUpkeepItemCreate = (data) => postRequest('/spin/upkeep-item/create', data);

// 更新保养项目
export const spinUpkeepItemUpdate = (data) => putRequest('/spin/upkeep-item/update', data);

// 删除保养项目
export const spinUpkeepItemDelete = (params) => deleteRequest('/spin/upkeep-item/delete', params);

// 获得保养项目
export const spinUpkeepItemGet = (params) => getRequest('/spin/upkeep-item/get', params);

// 获得保养项目分页
export const spinUpkeepItemPage = (params) => getRequest('/spin/upkeep-item/page', params);

// 导出保养项目 Excel
export const spinUpkeepItemExportExcel = (params) => getRequest('/spin/upkeep-item/export-excel', params);

// 提交
export const spinUpkeepItemSubmitAudit = (params) => postRequest('/spin/upkeep-item/submit-audit', params);
// 撤销提交
export const spinUpkeepItemClearSubmitAudit = (params) => postRequest('/spin/upkeep-item/clear-submit-audit', params);
// 审核
export const spinUpkeepItemAudit = (params) => postRequest('/spin/upkeep-item/audit', params);
// 撤销审核
export const spinUpkeepItemClearAudit = (params) => postRequest('/spin/upkeep-item/clear-audit', params);
// 保存并审核
export const spinUpkeepItemCreateAudit = (params) => postRequest('/spin/upkeep-item/create-audit', params);
// 更新并审核
export const spinUpkeepItemUpdateAudit = (params) => putRequest('/spin/upkeep-item/update-audit', params);
// 关闭
export const spinUpkeepItemClose = (params) => postRequest('/spin/upkeep-item/close', params);
// 撤销关闭
export const spinUpkeepItemClearClose = (params) => postRequest('/spin/upkeep-item/clear-close', params);
